package com.snails.app.configuration.model;

public final class SnailsDebug {
    public boolean debug = false;
    public String tag = "Snails";
    public boolean threadInfo = true;
    public boolean format = true;

    /**
     * 是否打印日志，默认false-不打印
     */
    public SnailsDebug debug(boolean debug) {
        this.debug = debug;
        return this;
    }

    /**
     * 每个日志的全局标记，默认-'Snails'
     */
    public SnailsDebug tag(String tag) {
        this.tag = tag;
        return this;
    }

    /**
     * 是否显示线程信息。默认true-显示
     */
    public SnailsDebug threadInfo(boolean show) {
        this.threadInfo = show;
        return this;
    }

    /**
     * 控制台打印日志是否格式化，默认true-格式化
     * 【保证打印信息对齐性，没打印一次线程会进行短暂的休眠】
     */
    public SnailsDebug format(boolean format) {
        this.format = format;
        return this;
    }

}
